Connecting to the Reader

The rm.Login must be called first to perform any reader management functions.

In case of fixed readers, the login information such as user name, password and secured mode are required for performing login operation. The secure mode parameter specifies that whether the mode of communication is HTTP or HTTPS. Based on this parameter, the internal communication between the client and the reader uses the specified transport interface. If supported by the Reader, there is an option to override an existing login session using the ForceLogin option of LoginInfo. This is currently supported on FX 7400 Version 1.1.0 and higher.

The login Info is not required for the Hand held readers. But it is must to call the rm.Login method first prior to other reader management functions.

// create Reader management object instance

ReaderManagement rm = new ReaderManagement();

 

LoginInfo loginfo = new LoginInfo("157.235.208.172", "admin", "change", SECURE_MODE.HTTP, true);

 

// Login operation

try

{

     rm.Login(loginInfo, READER_TYPE.FX);

}

catch (OperationFailureException ex)

{

     System.out.println("Login Failed " + ex.getStatusDescription() + ex.getVendorMessage());

}

 

Connecting to the RFID Module

The rm.Login must be called first to perform any reader management functions.

The login Info is not required for the RFID Module But it is must to call the rm.Login method first prior to other reader management functions.

// create Reader management object instance

ReaderManagement rm = new ReaderManagement();

 

LoginInfo loginfo = new LoginInfo("COM7", "921600");

 

// Login operation

try

{

     rm.Login(loginInfo, READER_TYPE.RE);

}

catch (OperationFailureException ex)

{

     System.out.println("Login Failed " + ex.getStatusDescription() + ex.getVendorMessage());

}